package ipad.asia.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description  
 * @Author  冯东旺
 * @Date 2021-04-13 20:23:34 
 */

@Entity
@Data
@Accessors(chain = true)
@Table ( name ="product")
public class ProductCopy implements Serializable {


	@Id
   @Column(name = "id" )
	private int id;

	/**
	 * 商品名
	 */
   @Column(name = "name" )
	private String name;

	/**
	 * 价格
	 */
   @Column(name = "price" )
	private Float price;

	/**
	 * 描述
	 */
   @Column(name = "describes" )
	private String describes;

	/**
	 * 突破路径
	 */
   @Column(name = "photo" )
	private String photo;

	/**
	 * 店铺id
	 */
   @Column(name = "shop_id" )
	private Integer shopId;

	/**
	 * 类别
	 */
   @Column(name = "kind" )
	private String kind;

	/**
	 * 是否下架
	 */
   @Column(name = "undercarriage" )
	private Integer undercarriage;

	/**
	 * 库存数量
	 */
   @Column(name = "number" )
	private Integer number;

	/**
	 * 是否打折
	 */
   @Column(name = "have_discount" )
	private Integer haveDiscount;

	/**
	 * 是否卖出
	 */
   @Column(name = "have_sell" )
	private Integer haveSell;

   @Column(name = "photo1" )
	private String photo1;

   @Column(name = "photo2" )
	private String photo2;

   @Column(name = "photo3" )
	private String photo3;

   @Column(name = "photo4" )
	private String photo4;

   @Column(name = "desc_photo1" )
	private String descPhoto1;

   @Column(name = "desc_photo2" )
	private String descPhoto2;

   @Column(name = "desc_photo3" )
	private String descPhoto3;

   @Column(name = "desc_photo4" )
	private String descPhoto4;

   @Column(name = "desc_photo5" )
	private String descPhoto5;

   @Column(name = "color" )
	private String color;

	/**
	 * 乐观锁所用的版本号
	 */
	@Column(name = "version" )
	private int version;

}
